package io.finer.erp.jeecg.bas.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 物料
 * @Author: jeecg-boot
 * @Date:   2020-08-25
 * @Version: V1.0
 */
@Data
@TableName("bas_material")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bas_material对象", description="物料")
public class BasMaterial implements Serializable {
    private static final long serialVersionUID = 1L;

	/**ID*/
	@SuppressWarnings("deprecation")
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "ID")
    private java.lang.String id;
	/**编码*/
	@Excel(name = "编码", width = 15)
    @ApiModelProperty(value = "编码")
    private java.lang.String code;
	/**名称*/
	@Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private java.lang.String name;
	/**分类*/
	@Excel(name = "分类", width = 15)
	@Dict(dictTable = "bas_material_category", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "分类")
    private java.lang.String categoryId;
	/**是否启用*/
	@Excel(name = "是否启用", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否启用")
    private java.lang.Integer isEnabled;
	/**规格型号*/
	@Excel(name = "规格型号", width = 15)
    @ApiModelProperty(value = "规格型号")
    private java.lang.String model;
	/**计量单位*/
	@Excel(name = "计量单位", width = 15, dictTable = "bas_measure_unit", dicText = "name", dicCode = "id")
	@Dict(dictTable = "bas_measure_unit", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "计量单位")
    private java.lang.String unitId;
	/**销售价格*/
	@Excel(name = "销售价格", width = 15)
    @ApiModelProperty(value = "销售价格")
    private java.math.BigDecimal salePrice;
	/**税控编码*/
	@Excel(name = "税控编码", width = 15)
    @ApiModelProperty(value = "税控编码")
    private java.lang.String taxCode;
	/**供应商*/
	@Excel(name = "供应商", width = 15)
	@Dict(dictTable = "bas_supplier", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "供应商")
    private java.lang.String supplier;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private java.lang.String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private java.util.Date updateTime;
	/**版本*/
	@Excel(name = "版本", width = 15)
    @ApiModelProperty(value = "版本")
    private java.lang.Integer version;
	/**编码条码图片位置*/
	@Excel(name = "编码条码图片位置", width = 15)
    @ApiModelProperty(value = "编码条码图片位置")
    private java.lang.String codeImg;
	/**预警阈值*/
	@Excel(name = "预警阈值", width = 15)
    @ApiModelProperty(value = "预警阈值")
    private java.lang.Integer warnAmount;
	/**时间阈值*/
	@Excel(name = "时间阈值", width = 15)
    @ApiModelProperty(value = "时间阈值")
    private java.lang.Integer warnTime;
	/**是否停止预警*/
	@Excel(name = "是否停止预警", width = 15)
	@Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否停止预警")
    private java.lang.Integer isStop;
	/**物料长度*/
	@Excel(name = "物料长度（厘米）", width = 15)
    @ApiModelProperty(value = "物料长度")
	private java.math.BigDecimal length;
	/**物料宽度*/
	@Excel(name = "物料宽度（厘米）", width = 15)
    @ApiModelProperty(value = "物料宽度")
	private java.math.BigDecimal width;	
	/**物料平方*/
	@Excel(name = "物料平方", width = 15)
    @ApiModelProperty(value = "物料平方")
	private java.math.BigDecimal square;
	/**物料数量*/
	@Excel(name = "物料数量", width = 15)
    @ApiModelProperty(value = "物料数量")
	private java.math.BigDecimal quantity;
	/**父物料*/
	@Excel(name = "父物料", width = 15)
    @ApiModelProperty(value = "父物料")
	@Dict(dictTable = "bas_material", dicText = "name", dicCode = "id")
	private java.lang.String pid;
	/**配方ID*/
	@Excel(name = "配方", width = 15, dictTable = "bas_product_formula", dicText = "pf_name", dicCode = "id")
	@Dict(dictTable = "bas_product_formula", dicText = "pf_name", dicCode = "id")
	@ApiModelProperty(value = "配方")
	private java.lang.String formulaId;
	/**副数量*/
	@Excel(name = "副数量", width = 15)
    @ApiModelProperty(value = "副数量")
	private java.math.BigDecimal viceQuantity;
	/**客户*/
    @ApiModelProperty(value = "客户")
    @Dict(dictTable = "bas_customer", dicText = "name", dicCode = "id")
	private java.lang.String customerId;

}
